/**
 *
 */
package com.angel.mocks.data.generator.daos.impl;

import java.io.Serializable;

import org.hibernate.criterion.Restrictions;

import com.angel.dao.generic.impl.GenericHibernateDAO;
import com.angel.mocks.data.generator.daos.UserTypeDAO;
import com.angel.mocks.data.generator.domainObject.UserType;

/**
 * @author William
 *
 */
public class UserTypeHibernateDAO extends GenericHibernateDAO<UserType, Serializable> implements UserTypeDAO {


	public UserType findByDescription(String description) {
		return super.findUniqueBy(Restrictions.eq("description", description));
	}


	public UserType findByName(String name) {
		return super.findUniqueBy(Restrictions.eq("name", name));
	}





}
